/*
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2024-07-16     Tian Yiqing  first implementation
 */

#ifndef __DRV_DMA_H__
#define __DRV_DMA_H__

#include <rthw.h>
#include <rtthread.h>
#include <board.h>

#ifdef __cplusplus
extern "C" {
#endif

typedef struct dma_config
{
    uint32_t dma_periph;
    IRQn_Type irqn;
    rcu_periph_enum dma_clk;
    dma_channel_enum channel;
    dma_subperipheral_enum subperiph;
    uint32_t priority;
    rt_size_t last_index;
}dma_config_t;

#ifdef __cplusplus
}
#endif

#endif /* __DRV_DMA_H__ */
